﻿using PerfTestLib.Result;
using PerfTestLib.Spec;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace PerfTestLib.Runtime
{
    public class TestSpecIterationInstance<TData>
    {
        public int RepeatIndex { get; set; }
        public TestSpecIteration<TData> Iteration { get; set; }
        public TData Data { get; set; }
        public CancellationToken CancellationToken { get; set; }


        public TestSpecIterationInstance(int repeatIndex, TestSpecIteration<TData> iteration, TData data, CancellationToken cancellationToken)
        {
            this.RepeatIndex = repeatIndex;
            this.Iteration = iteration;
            this.Data = data;
            this.CancellationToken = cancellationToken;
        }
    }
}
